package org.jeecg.modules.thirdpartyapi.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 拉取
 *
 * @author zhanglei01
 * @date 2022/03/04
 */
@ApiModel(value = "拉取", description = "拉取")
@Data
public class PullDto {

    @ApiModelProperty(value = "拉取开始时间", required = true)
    @NotEmpty(message = "startTime不能为空！")
    private String startTime;

    @ApiModelProperty(value = "拉取截至时间", required = true)
    @NotEmpty(message = "endTime不能为空！")
    private String endTime;

    @ApiModelProperty(value = "第几页", required = true)
    @NotNull(message = "pageIndex不能为空")
    @Min(1)
    private Integer pageIndex;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "pageSize不能为空")
    @Min(0)
    @Max(100)
    private Integer pageSize = 20;

    @ApiModelProperty(value = "是否蛇形命名返回业务报文")
    private Boolean isSnakeCase = false;
}
